<?php
/*
*Template agents single
*create by zonthemes zonthemes.com
*/
?>
<?php get_header(); ?>
	<div class="cate-banner">
		<img src="<?php bloginfo("template_url"); ?>/images/blog-banner.png" />
		<div class="row">
			<h1><?php _e('Agents','zonthemes'); ?></h1>
			<?php if(function_exists('zonthemes_breadcrumbs')){zonthemes_breadcrumbs();} ?>
		</div><!---end .row-->
		<div class="clear"></div>
	</div><!--end .cate-banner-->
	<div id="container" class="no-home-bg">
		<div class="row">
			<div class="content single-property">
				<?php if(have_posts()) while(have_posts()) : the_post(); ?>
				<div class="agents-single">
					<div class="agents-header">
						<img class="agents-avatar" src="<?php echo zon_get_thumbnail('thumbnail'); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" />
						<h2>
							<?php the_title(); ?>
							<span><?php echo zon_meta('zon_agents_address'); ?></span>
						</h2>
						<ul class="agents-info">
							<li><span><?php _e('Staff position : ','zonthemes'); ?></span><?php echo zon_meta('zon_agents_staff'); ?></li>
							<li><span><?php _e('Phone : ','zonthemes'); ?></span><?php echo zon_meta('zon_agents_phone'); ?></li>
							<li><span><?php _e('Email : ','zonthemes'); ?></span><a href="mailto:<?php echo zon_meta('zon_agents_email'); ?>"><?php echo zon_meta('zon_agents_email'); ?></a></li>
						</ul>
						<ul class="agents-social">
							<li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/facebook-icon.png" title="Facebook" /></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/gplus-icon.png" title="Google plus" /></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/linkedin-icon.png" title="Likedin" /></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/twitter-icon.png" title="Twitter" /></a></li>
						</ul>
						<div class="clear"></div>
					</div>
					<div class="entry-content">
						<?php the_content(); ?>
					</div>
				</div>
				<?php $post_id = get_the_ID(); ?>
				<?php endwhile; ?>
				<?php wp_reset_query(); ?>
				<div class="agents-listing">
					<h3 class="single-box-title"><?php _e('Related listing','zonthemes') ?></h3>
					<ul class="pro-list">
						<?php zonthemes_property_of_agent($post_id,-1); ?>
					</ul>
				</div>
			</div><!--end #content-->
			<?php get_sidebar(); ?>
			<div class="clear"></div>
		</div><!--end .row-->
	</div><!--end #container-->
<?php get_footer(); ?>